config: move pio json handling to statefiles.c
authorDavid Härdeman <[email protected]>
Fri, 28 Nov 2025 10:48:59 +0000 (11:48 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 9 Dec 2025 15:29:12 +0000 (16:29 +0100)
commitcb65b83e524e385265de3478c70e1c20b210263f
treed61771fccd10172952f0933e743feb139b3beeec
parent5b01849cc42cb410fc4ce152519a27fb93d9bcb6
config: move pio json handling to statefiles.c

The prefix information files are also examples of statefiles, and there
are some things which can be shared between e.g. the state file logic
and the pio file logic (like the conversion from MONOTIME to time_t and
back, and also the use of tmp files). That's for later patches though,
this just moves the code without any code changes to make subsequent
patches clearer.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/333
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/config.c
src/odhcpd.h
src/router.c
src/statefiles.c
src/statefiles.h